package com.thinkgem.jeesite.modules.gen.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.thinkgem.jeesite.kpoint.core.base.KpointBaseEntity;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

;

/**
 * 模板条目Entity
 *
 * @author kongxiangsheng
 * @version 2018-11-05
 */
@Data
public class GenTemplateItem extends KpointBaseEntity {
    public static final String COL_NAME = "`name`";
    public static final String COL_FILE_LOCATION = "`file_location`";
    public static final String COL_FILE_NAME = "`file_name`";
    public static final String COL_CONTENT_PATH = "`content_path`";

    private static final long serialVersionUID = 1L;
    /**
     * 名称
     */
    @TableField(condition = SqlCondition.LIKE)
    @Length(min = 1, max = 100, message = "名称长度必须介于 1 和 100 之间")
    private String name;
    /**
     * 文件路径
     */
    @Length(min = 0, max = 100, message = "文件路径长度必须介于 0 和 100 之间")
    private String fileLocation;
    /**
     * 文件名称
     */
    @Length(min = 1, max = 100, message = "文件名称长度必须介于 1 和 100 之间")
    private String fileName;

    /**
     * 模板文件路径
     */
    private String contentPath;
}